#!/bin/sh

#一行一行打印

if [ -e yiyi ]; then
	echo "已经有yiyi"
else
	touch yiyi
fi

hello ()
{
	echo "Hello there today's date is `date`"
}

echo 请输入i的值
read i
j=0

while [ "$j" -lt "$i" ]; do
	echo -e $j >> yiyi
	j=`expr $j + 1`
done

hello
exit 0
